package com.qf.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class DeviceGather {

    private int id;
    private int deviceId;
    private String deviceSn;
    private String deviceName;
    private String deviceType;
    private float basicData;
    private int measurementUnitId;
    private String measurementUnitName;
    private String measureUnitType;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date gatherTime;
    private Date createTime;
    private Date updateTime;


    private Device device;

}
